package com.example.other.controller;

import com.example.authority.common.entity.Result;
import com.example.other.service.DoctorUsersInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DoctorController {
    @Autowired
    DoctorUsersInfoService doctorService;

    @GetMapping("/doctor")
    public Result list() {
        return Result.succ(doctorService
                .getBaseMapper()
                .selectList(null));
    }
}
